﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WpfAGVSystem.Migrations
{
    public partial class init8 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Wind_FullTask",
                table: "FullCache_Entity",
                newName: "HYWind_FullTask");

            migrationBuilder.RenameColumn(
                name: "WindEmptyTask",
                table: "FullCache_Entity",
                newName: "HYWindEmptyTask");

            migrationBuilder.RenameColumn(
                name: "LoadFullTask",
                table: "FullCache_Entity",
                newName: "HYLoadFullTask");

            migrationBuilder.RenameColumn(
                name: "LoadEmptyTask",
                table: "FullCache_Entity",
                newName: "HYLoadEmptyTask");

            migrationBuilder.AddColumn<int>(
                name: "DDLoadEmptyTask",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "DDLoadFullTask",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "DDWindEmptyTask",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "DDWind_FullTask",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "DDLoadEmptyTask",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "DDLoadFullTask",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "DDWindEmptyTask",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "DDWind_FullTask",
                table: "FullCache_Entity");

            migrationBuilder.RenameColumn(
                name: "HYWind_FullTask",
                table: "FullCache_Entity",
                newName: "Wind_FullTask");

            migrationBuilder.RenameColumn(
                name: "HYWindEmptyTask",
                table: "FullCache_Entity",
                newName: "WindEmptyTask");

            migrationBuilder.RenameColumn(
                name: "HYLoadFullTask",
                table: "FullCache_Entity",
                newName: "LoadFullTask");

            migrationBuilder.RenameColumn(
                name: "HYLoadEmptyTask",
                table: "FullCache_Entity",
                newName: "LoadEmptyTask");
        }
    }
}
